import React from 'react';
import { RouterProvider } from 'react-router-dom';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import { router } from './router';
import aliCloudTheme from './theme';
import './styles/cloud-effect.css';
import 'dayjs/locale/zh-cn';
import dayjs from 'dayjs';

// 设置dayjs为中文
dayjs.locale('zh-cn');

function App() {
  return (
    <ConfigProvider
      locale={zhCN}
      theme={aliCloudTheme}
    >
      <RouterProvider router={router} />
    </ConfigProvider>
  );
}

export default App;
